package com.nari.ncps.screen.dto.excelimport.ne;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 高风险作业统计表
 * </p>
 *
 * @author xuesong
 * @since 2025-08-23
 */
@Getter
@Setter
@TableName("qt_dp_ne_safetyenv_risk_task")
@Schema(name = "NeSafetyenvRiskTask对象", description = "高风险作业统计表")
public class NeSafetyenvRiskTask implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "年份")
    @TableField("year")
    private Integer year;

    @Schema(description = "月份")
    @TableField("month")
    private Integer month;

    @Schema(description = "日期，格式为yyyy-MM")
    @TableField("date")
    private String date;

    @Schema(description = "高风险作业个数")
    @TableField("high_risk_tasks")
    private Integer highRiskTasks;

    @Schema(description = "高风险作业人数")
    @TableField("high_risk_workers")
    private Integer highRiskWorkers;

    @Schema(description = "作业类型：0-高空作业，1-受限空间，2-动火作业，3-带电作业，4-其他")
    @TableField("task_type")
    private Byte taskType;

    @Schema(description = "区域：0-全国，1-蒙东，2-蒙西")
    @TableField("region")
    private Byte region;

    @Schema(description = "场站/电厂编号")
    @TableField("plant_id")
    private String plantId;

    @Schema(description = "事故数量")
    @TableField("accident_count")
    private Integer accidentCount;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @Schema(description = "创建人")
    @TableField("creator")
    private String creator;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @Schema(description = "更新人")
    @TableField("updater")
    private String updater;
}
